package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 应用程序启动类
 * 
 * 配置了组件扫描、实体扫描和JPA仓库扫描范围
 * 质量属性关联：
 * - 可维护性：通过正确的包扫描配置确保系统组件被正确识别
 * - 可扩展性：支持跨包的组件发现，便于后续功能扩展
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.example"})
@EntityScan(basePackages = {"com.example"})
@EnableJpaRepositories(basePackages = {"com.example"})
public class EratApplication {

    public static void main(String[] args) {
        SpringApplication.run(EratApplication.class, args);
    }

}
